from rest_framework.renderers import JSONRenderer

class CustomRenderer(JSONRenderer):
    """自定义渲染器"""
    def render(self, data, accepted_media_type=None, renderer_context=None):
        # print(data)
        # print(accepted_media_type)
        # print(renderer_context)
        return super().render(data, accepted_media_type, renderer_context)